<!--Box-->
<style>
	#mostbuy .box_buy{
		display:table; width:100%; margin-bottom:10px;
	}
	#mostbuy .col_45l{
		width:42%; float:left;
	}
	#mostbuy .co1_53r{
		width:56%; float:right;
	}
</style>
<div class="caption_box icon_title" style="background: #FFAA55; margin-bottom:5px;">
    <div style="float:left; width:85%">
        <span style="color:#FFFFFF; padding:8px;"><?php echo $this->translator()->widget('widget_enterprise_most_buy');?></span>
    </div>    
</div>
<div style="clear:both;"></div>
<div id="mostbuy">
    <?php foreach($this->enterprises as $enterprise):?>
    <?php
        //Check image exist directory       
        $file_noimage = $this->APP_STATIC_SERVER."/images/logos/no-logo.jpg";
        $file = $this->APP_STATIC_SERVER."/images/logos/".$enterprise->id.'.jpg';
        $path = str_replace($this->APP_STATIC_SERVER,getcwd(),$file);
        $urlImage = is_file($path)?$file:$file_noimage;

        //Param url detail
        $arrRouteDetail = array(
            'enterprise_id' => $enterprise->id,
            'enterprise_name' => Tomato_Utility_String::removeSign($enterprise->company_name_en, '-', true),
        );
        $enterprise_name = ($this->lang == 'vi_VN')?$enterprise->company_name_vn:$enterprise->company_name_en;
        
        //About us
        $info = $this->arrInfos[$enterprise->id];
    ?>
    <div class="box_buy">
        <div class="col_45l">
            <a href="<?php echo $this->url($arrRouteDetail,'bizprofile_enterprise_index');?>">
                <img width="120"src="<?php echo $urlImage;?>" class="item_img" title="<?php echo $enterprise_name;?>" alt="<?php echo $enterprise_name;?>">
            </a>
        </div>
        <div class="co1_53r">
        	<div>
				<a href="<?php echo $this->url($arrRouteDetail,'bizprofile_enterprise_index');?>"><span class="title"><?php echo $enterprise_name;?></span></a>            
			</div>
			<div style="text-align:justify; width:100%;">
                <?php echo isset($info->info_string)?Tomato_Helper_Helper::substring($info->info_string, 150):null;?>
            </div>
        </div>
    </div>
    <?php endforeach;?>
</div>